<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <base href="<%=basePath%>">
    
    <title>添加系统权限</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  <link href="css/style.css" rel="stylesheet" type="text/css" />
   <script type="text/javascript" src="<%=path%>/js/jquery-1.9.1.min.js"></script>
  <script type="text/javascript" src="<%=path%>/js/layer/layer.js"></script>
  <script type="text/javascript" src="<%=path%>/js/dialog/dialog.js"></script>
  <script type="text/javascript" src="js/jquery.validate.js" ></script>
<!--    <script type="text/javascript" src="js/commenjs.js" ></script> -->
 	<script type="text/javascript">
        $(function(){
            $("#myform").validate();
            $("#rightid").blur(function(){ 			
 		if(checkRight()){
 		
 		checkrightid();
 		}
 		
 	});
        });
    </script>
  <script type="text/javascript">
  
	function openFirstLayer(){
              
                layer.open({
                  type: 2,
                  title: ['权限信息','background-color:rgb(40, 144, 241);padding-left:5px;color:#fff'],
                  fix: false, //不固定
                  closeBtn: 1, //显示关闭按钮
                  shade: [0.3],
                  area: ['90%', '90%'],
                  offset: '10px', //右下角弹出,
                  
                  //anim: 4,
                  content: ['<%=basePath%>admin/findRightIdall.action', 'yes'] 
                });
            }       
            
  </script>
  </head>
  
  <body>
  
    	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
   
   <li><a href="#">添加系统权限</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    <div class="formtitle"><span>基本信息</span></div>
    <form action="<%=basePath%>admin/addSysright.action" method="post" id="myform">
    <ul class="forminfo">
    <li><label>权限英文名称</label><input name="sysright.rightid" id="rightid" type="text" class="dfinput required" /><i id="msgright" style="color:red;font-size:12px;">*(只能输入英文)</i></li>
    <li><label>权限中文名称</label><input name="sysright.rightname" type="text" class="dfinput required" /><i style="color:red;font-size:12px;">*</i></li>
    <li><label>权限所属</label>
    <input name="sysright.prightid" type="hidden" id="prightid" class="dfinput required" />
        <input name="rightname" id="rightname" type="text" class="dfinput required" readonly="readonly"/>
    <input type="button" class="cancel" onclick="openFirstLayer()" value="选择"/><i style="color:red;font-size:12px;">*</i></li>
    <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="确认保存"/> <input type="button" name="button" value="返回" class="btn" onclick="javascript:window.history.back(-1);"/></li>
    </ul>
    
    </form>
    </div>

    
  </body>
</html>
